admin: Use linkcopy_sync_data() for initramfs instead of rename()
authorColin Walters <walters@verbum.org>
Mon, 15 Apr 2013 16:50:58 +0000 (12:50 -0400)
committerColin Walters <walters@verbum.org>
Mon, 15 Apr 2013 16:50:58 +0000 (12:50 -0400)
commit5565735bcbd94a718e1f557dc8890da4248b1617
treec6dd170ed216c3f84dc4afebf3f93ac28d6cf575
parenta01783dafdad5eb6868173ad643a0e7ba8d4e95b
admin: Use linkcopy_sync_data() for initramfs instead of rename()

It's possible (likely even) that /tmp is on a separate filesystem; in
that case, a raw rename() is going to fail.

Saw this on the ostree.gnome.org builder.
src/ostree/ot-admin-builtin-update-kernel.c